﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;
using ACP.Business;
using ACP.DTO;

namespace ACP.Web.UI
{
    public partial class _Default : System.Web.UI.Page
    {
        protected void Page_Load(object sender, EventArgs e)
        {
            try
            {
                List<question> questionsList = QuestionsLogic.GetAllQuestions();
                //Response.Write(questionsList.Count);
                //updateQuestion();
            }
            catch (Exception ex)
            {
                Response.Write(ex.Message + "\n StackTrace " + ex.StackTrace);
            }
           
        }


        private void updateQuestion()
        {
            int id =1;
            question questionObject = QuestionsLogic.GetQuestionById(id);
            questionObject.option1 = "Update Testing";
            questionObject.option2 = "Update Testing";
            questionObject.option3 = "Update Testing";
            questionObject.option4 = "Update Testing";
            QuestionsLogic.UpdateQuestion(questionObject);

        }
    }
}
